package com.liukai.todo_android.entity;

import java.io.Serializable;
import java.util.Date;

public class ItemVo implements Serializable {
    /**
     * id
     */
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 标题
     */
    private String title;
    /**
     * 类型id
     */
    private Long itemTypeId;
    /**
     * 描述信息
     */
    private String description;
    /**
     * 附件地址
     */
    private String attachment;
    /**
     * todo开始时间
     */
    private Date gmtStarted;
    /**
     * 完成时间
     */
    private Date gmtFinished;
    /**
     * 计划用时
     */
    private Integer consumePlanning;
    /**
     * 是否完成（0未完成，1已完成）
     */
    private Byte finished;
    /**
     * 总结
     */
    private String summary;
    /**
     * 0默认,1正计时,2倒计时
     */
    private Byte timingType;
    /**
     * 添加时间
     */
    private Date gmtCreate;

    public ItemVo() {
    }

    public ItemVo(Long id, Long userId, String title, Long itemTypeId, String description,
                  String attachment, Date gmtStarted, Date gmtFinished, Integer consumePlanning,
                  Byte finished, String summary, Byte timingType, Date gmtCreate) {
        this.id = id;
        this.userId = userId;
        this.title = title;
        this.itemTypeId = itemTypeId;
        this.description = description;
        this.attachment = attachment;
        this.gmtStarted = gmtStarted;
        this.gmtFinished = gmtFinished;
        this.consumePlanning = consumePlanning;
        this.finished = finished;
        this.summary = summary;
        this.timingType = timingType;
        this.gmtCreate = gmtCreate;
    }

    public Long getId() {
        return id;
    }

    public ItemVo setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getUserId() {
        return userId;
    }

    public ItemVo setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public ItemVo setTitle(String title) {
        this.title = title;
        return this;
    }

    public Long getItemTypeId() {
        return itemTypeId;
    }

    public ItemVo setItemTypeId(Long itemTypeId) {
        this.itemTypeId = itemTypeId;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public ItemVo setDescription(String description) {
        this.description = description;
        return this;
    }

    public String getAttachment() {
        return attachment;
    }

    public ItemVo setAttachment(String attachment) {
        this.attachment = attachment;
        return this;
    }

    public Date getGmtStarted() {
        return gmtStarted;
    }

    public ItemVo setGmtStarted(Date gmtStarted) {
        this.gmtStarted = gmtStarted;
        return this;
    }

    public Date getGmtFinished() {
        return gmtFinished;
    }

    public ItemVo setGmtFinished(Date gmtFinished) {
        this.gmtFinished = gmtFinished;
        return this;
    }

    public Integer getConsumePlanning() {
        return consumePlanning;
    }

    public ItemVo setConsumePlanning(Integer consumePlanning) {
        this.consumePlanning = consumePlanning;
        return this;
    }

    public Byte getFinished() {
        return finished;
    }

    public ItemVo setFinished(Byte finished) {
        this.finished = finished;
        return this;
    }

    public String getSummary() {
        return summary;
    }

    public ItemVo setSummary(String summary) {
        this.summary = summary;
        return this;
    }

    public Byte getTimingType() {
        return timingType;
    }

    public ItemVo setTimingType(Byte timingType) {
        this.timingType = timingType;
        return this;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public ItemVo setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
        return this;
    }

    @Override
    public String toString() {
        return "ItemVo{" +
                "id=" + id +
                ", userId=" + userId +
                ", title='" + title + '\'' +
                ", itemTypeId=" + itemTypeId +
                ", description='" + description + '\'' +
                ", attachment='" + attachment + '\'' +
                ", gmtStarted=" + gmtStarted +
                ", gmtFinished=" + gmtFinished +
                ", consumePlanning=" + consumePlanning +
                ", finished=" + finished +
                ", summary='" + summary + '\'' +
                ", timingType=" + timingType +
                ", gmtCreate=" + gmtCreate +
                '}';
    }
}